package com.wuze.cloud.handler;

import com.wuze.cloud.dao.SysFileDao;
import com.wuze.cloud.dao.SysFolderDao;
import com.wuze.cloud.dao.SysFolderRelationDao;
import com.wuze.cloud.dao.SysRecyclingDao;
import com.wuze.cloud.pojo.SysFileDO;
import com.wuze.cloud.pojo.SysFolderRelationDO;
import com.wuze.cloud.pojo.SysRecyclingDO;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.assertj.core.util.Lists;
import org.assertj.core.util.Sets;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.CollectionUtils;

import java.util.List;
import java.util.Objects;
import java.util.Set;
import java.util.stream.Collectors;

import static com.wuze.cloud.enums.SysFileTypeEnum.FOLDER_FILE;
import static com.wuze.cloud.enums.SysStateEnum.DELETE;
import static com.wuze.cloud.enums.SysStateEnum.RECYCLING;

/**
 * @Author wuze
 * @Date 2023/5/16 11:06
 * @ClassName: SysCleanRecycling
 * @Description: TODO
 */
@Slf4j
@Component
@RequiredArgsConstructor
public class SysCleanShard {


    @XxlJob("doCleanShard")
    @Transactional(rollbackFor = Exception.class)
    public ReturnT<String> doCleanRecycling() {
        log.info("===============开始清理多余分片=================");
        return ReturnT.SUCCESS;
    }


}
